import useRequest from "@/utils/request";

const request = useRequest({});
// 优惠券审核列表
export function couponAuditList(params: any) {
  return request.get("/cj-stadium/sys/coupon/audit/list", {
    params,
  });
}

// 优惠券审核列表统计
export function countCouponAuditList(params: any) {
  return request.get("/cj-stadium/sys/coupon/audit/count", {
    params,
  });
}

// 优惠券基础信息审批
export function auditOrUnAudit(params: any) {
  return request.get("/cj-stadium/sys/coupon/audit/auditOrUnAudit", {
    params,
  });
}

// 优惠券基础审批信息查询（含历史记录）
export function getAuditDetails(params: any) {
  return request.get("/cj-stadium/sys/coupon/audit/getAuditDetails", {
    params,
  });
}

// 优惠券发布审核列表
export function getCouponsApplyList(params: any) {
  return request.get("/cj-stadium/sys/coupon/audit/applyList", {
    params,
  });
}

// 统计优惠券发布审核列表
export function countCouponsApplyList(params: any) {
  return request.get("/cj-stadium/sys/coupon/audit/applyCount", {
    params,
  });
}

// 优惠券发布审核
export function auditOrUnAuditApplyCoupons(params: any) {
  return request.get("/cj-stadium/sys/coupon/audit/auditOrUnAuditApplyCoupon", {
    params,
  });
}

// 优惠券发布审核详情（含历史记录）
export function getApplyCouponsDetails(params: any) {
  return request.get("/cj-stadium/sys/coupon/audit/getApplyCouponDetails", {
    params,
  });
}

// 获取优惠券兑换码
export function getCouponsCodeList(params: any) {
  return request.get("/cj-stadium/sys/coupon/audit/getCouponCodeList", {
    params,
  });
}

// 优惠券操作记录
export function getOperationList(params: any) {
  return request.get("/cj-stadium/sys/coupon/getOperationList", {
    params,
  });
}
// 卡券审核列表
export function passAuditList(params: any) {
  return request.get("/cj-stadium/sys/coupon/audit/list", {
    params,
  });
}
// 统计卡券审核列表
export function countPassAuditList(params: any) {
  return request.get("/cj-stadium/sys/coupon/audit/count", {
    params,
  });
}